package com.xidian.zhiancloud.util.constants;


/**
 * 
 * @author ichuanpin
 * 
 */
public class BaseDataConstants {
	
	public final static String LOCALHOST_ADD = "http://www.anyembed.com:8080";
	/** 文件存储目录*/
	public static String FILEDIR="/uploadfile/";
	/**图片存储目录*/
	public static String IMGDIR="/uploadimg/";
	/**文件校验格式*/
	public static String VALIDFILETYPE = "";
	/**文件校验大小  KB*/
	public static Integer VALIDFILESIZE = 256*256;
	/**图片校验格式*/
	public static String VALIDEIMAGETYPE = "image/gif,image/jpeg,image/png";
	/**图片校验大小 KB*/
	public static Integer VALIDEIMAGESIZE = 256*256;
	/**临时文件存储目录*/
	public static String TEMPFILEDIR="/temp/";
	/**高德地图USERKEY*/
	public static String USERKEY="f9982a5ce25f03835ca33fce5b1622c9";
	/**附近的景点静态地图显示标注数*/
	public static Integer NEARJDCNT=5;

	public static enum getAPI {
		/**
		 * 图片上传
		 */
		upload_for_image("uploadimg");

		// 定义私有变量
		private String api;

		// 构造函数，枚举类型只能为私有
		private getAPI(String api) {
			this.api = api;
		}

		@Override
		public String toString() {
			return this.api;
		}
	}


	public static enum getReturnCode {

	}

	public static enum getImageSpec {
		/**意见反馈    图片规格256*256 后缀*/
		normal_6_suffix("_thumb"),
		/**意见反馈    图片规格256*256 宽*/
		normal_6_width("256"),
		/**意见反馈    图片规格256*256 宽*/
		normal_6_height("256"),
		;
		private String imageSpec;

		// 构造函数，枚举类型只能为私有
		private getImageSpec(String imageSpec) {

			this.imageSpec = imageSpec;
		}

		@Override
		public String toString() {
			return this.imageSpec;
		}
	}
}
